package com.nulstudio.sppm.network;
import java.util.Objects;
public class CreateCustomerRequest {
    private final String name, type, phone, address, notes;

    public CreateCustomerRequest(String name, String type, String phone, String address, String notes) {
        this.name = name;
        this.type = type;
        this.phone = phone;
        this.address = address;
        this.notes = notes;
    }

    public CreateCustomerRequest() {
        this.name = null;
        this.type = null;
        this.phone = null;
        this.address = null;
        this.notes = null;
    }

    public String getName() {return name;}

    public String getType() {return type;}

    public String getPhone() {return phone;}

    public String getAddress() {return address;}

    public String getNotes() {return notes;}


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CreateCustomerRequest that = (CreateCustomerRequest) o;
        return Objects.equals(name, that.name) && Objects.equals(type, that.type) && Objects.equals(phone, that.phone) && Objects.equals(address, that.address) && Objects.equals(notes, that.notes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, type, phone, address, notes);
    }
}
